package ch18.v3.model;

import java.io.Serializable;

public class Student extends Person implements Serializable {
    private static final long serialVersionUID = 1L;
    private String stuNo;   // 学号
    private String age;    // 年龄
    private String idCardNumber;    // 身份证号
    private String politicalStatus; // 政治面貌
    private String poor;            // 是否贫困
    private String financialAidStatus;// 助学金状态
    private Family family;          // 家庭成员
    private String major;             // 专业
    private String grade;             // 年级
    private String classNo;           // 班级

    public Student() {

    }

    public Student(String stuNo, String age, String idCardNumber, String politicalStatus, String poor, String financialAidStatus, Family family, String major, String grade, String classNo) {
        this.stuNo = stuNo;
        this.age = age;
        this.idCardNumber = idCardNumber;
        this.politicalStatus = politicalStatus;
        this.poor = poor;
        this.financialAidStatus = financialAidStatus;
        this.family = family;
        this.major = major;
        this.grade = grade;
        this.classNo = classNo;
    }

    public String getClassNo() {
        return classNo;
    }

    public void setClassNo(String classNo) {
        this.classNo = classNo;
    }


    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }

    public String getPoliticalStatus() {
        return politicalStatus;
    }

    public void setPoliticalStatus(String politicalStatus) {
        this.politicalStatus = politicalStatus;
    }

    public String getPoor() {
        return poor;
    }

    public void setPoor(String poor) {
        this.poor = poor;
    }

    public String getFinancialAidStatus() {
        return financialAidStatus;
    }

    public void setFinancialAidStatus(String financialAidStatus) {
        this.financialAidStatus = financialAidStatus;
    }

    public Family getFamily() {
        return family;
    }

    public void setFamily(Family family) {
        this.family = family;
    }

    @Override
    public String toString() {
        return "学号：" + stuNo +
                "，姓名：" + super.getName() +
                "，年龄：" + age +
                "，性别：" + super.getGender() +
                "，身份证号：" + idCardNumber +
                "，政治面貌：" + politicalStatus +
                "，电话：" + super.getTelephone() +
                "，家庭住址：" + super.getAddress() +
                "，专业：" + major +
                "，年级：" + grade +
                "，班级：" + classNo +
                "，贫困生状态：" + poor +
                "，获取助学金状态：" + financialAidStatus +"，"+ family.toString();
    }
}